<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>收费标准管理</title>
<LINK href="images/css.css" type="text/css" rel="stylesheet">
</head>
<body>
  <table class="tableline" cellspacing="1" cellpadding="0" width="100%" border="0">
    <html:form action="chargeCriterion.do?method=save" method="post" onsubmit="return checkForm();">
    <tr>
      <td class="STYLE4" align="center" bgcolor="#ffffff" colspan="2" height="40">添加收费标准</td>
    </tr>
    <tr>
      <td width="217" height="26" align="right" bgcolor="#ffffff">所属小区:</td>
      <td width="773" bgcolor="#ffffff">
      &nbsp;<html:select property="subDistrictId" style="width:150px">
				<html:option value="0">请选择</html:option>
				<c:if test="${!empty subDistrictList}">
					<c:forEach items="${subDistrictList}" var="subDistrict">
						<html:option value="${subDistrict.id}">${subDistrict.name}</html:option>
					</c:forEach>
				</c:if>
			</html:select><font color="red">${subDistrictIdError }</font>
	  </td>
    </tr>
    <tr>
      <td width="217" height="26" align="right" bgcolor="#ffffff">收费项目:</td>
      <td width="773" bgcolor="#ffffff">
      &nbsp;<html:select property="chargeItemId" style="width:150px">
				<html:option value="0">请选择</html:option>
				<c:if test="${!empty chargeItemList}">
					<c:forEach items="${chargeItemList}" var="item">
						<html:option value="${item.id}">${item.name}</html:option>
					</c:forEach>
				</c:if>
			</html:select><font color="red">${chargeItemError }</font>
	  </td>
    </tr>
    <tr>
      <td width="217" height="26" align="right" bgcolor="#ffffff">房产类型:</td>
      <td width="773" bgcolor="#ffffff">
      &nbsp;<html:select property="houseTypeId" style="width:150px">
				<html:option value="0">请选择</html:option>
				<c:if test="${!empty houseTypeList}">
					<c:forEach items="${houseTypeList}" var="houseType">
						<html:option value="${houseType.id}">${houseType.name}</html:option>
					</c:forEach>
				</c:if>
			</html:select><font color="red">${houseTypeError }</font>
	  </td>
    </tr>
    <tr>
      <td width="217" height="26" align="right" bgcolor="#ffffff">楼栋类型:</td>
      <td width="773" bgcolor="#ffffff">
      &nbsp;<html:select property="buildingTypeId" style="width:150px">
				<html:option value="0">请选择</html:option>
				<c:if test="${!empty buildingTypeList}">
					<c:forEach items="${buildingTypeList}" var="buildingType">
						<html:option value="${buildingType.id}">${buildingType.name}</html:option>
					</c:forEach>
				</c:if>
			</html:select><font color="red">${buildingTypeError }</font>
	  </td>
    </tr>
    <tr>
      <td width="217" height="26" align="right" bgcolor="#ffffff">房产来源:</td>
      <td width="773" bgcolor="#ffffff">
      &nbsp;<html:select property="houseSourceId" style="width:150px">
				<html:option value="0">请选择</html:option>
				<c:if test="${!empty houseSourceList}">
					<c:forEach items="${houseSourceList}" var="houseSource">
						<html:option value="${houseSource.id}">${houseSource.name}</html:option>
					</c:forEach>
				</c:if>
			</html:select><font color="red">${houseSourceError }</font>
	  </td>
    </tr>
    <tr>
      <td width="217" height="26" align="right" bgcolor="#ffffff">停车位置:</td>
      <td width="773" bgcolor="#ffffff">
      &nbsp;<html:select property="parkLocationId" style="width:150px">
				<html:option value="0">请选择</html:option>
				<c:if test="${!empty parkLocationList}">
					<c:forEach items="${parkLocationList}" var="parkLocation">
						<html:option value="${parkLocation.id}">${parkLocation.name}</html:option>
					</c:forEach>
				</c:if>
			</html:select><font color="red">${parkLocationError }</font>
	  </td>
    </tr>        
    <tr>
      <td height="26" align="right" bgcolor="#ffffff">收费标准(元):</td>
      <td width="773" bgcolor="#ffffff">&nbsp;<html:text property="amount" /><font color="red">${amountError }</font></td>
    </tr>
        <tr>
      <td height="26" colspan="2" align="center" bgcolor="#ffffff"><html:submit value="增加收费标准" /></td>
      </tr>
    </html:form>
  </table>
</body>
</html>